/**
 * Copyright 2019 Inc.
 **/
package com.myz.service.gateway.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

/**
 * @author maoyz0621 on 19-3-13
 * @version: v1.0
 */
@RestController
public class IndexConroller {

    /**
     * Mono是一个Reactive stream，对外输出一个“fallback”字符串
     * 配合hystrix的服务降级
     */
    @RequestMapping("/fallback")
    public Mono<String> fallback() {
        return Mono.just("fallback");
    }

}
